import Vue from 'vue'
import Router from 'vue-router'
import pageLayout from '@/views/base/layout'

import base from './module/base' // 嵌套路由
import module1 from './module/module1' // 非嵌套

Vue.use(Router)

export default new Router({
  routes: [
    // 最外层
    {
      path: '/',
      name: 'pageLayout',
      component: pageLayout,
      redirect: '/test1'
    },
    ...base(),
    ...module1()
  ]
})
